import request from '@/utils/request';

//获取验证码
const reqGetCode = (phone) => {
  return request.get(`/api/user/passport/sendCode/${phone}`);
};

//15.注册用户
const reqUserRegister = (users) => {
  return request.post(`/api/user/passport/register`,users);
};
//2.登录
const reqToLogin = (users) => {
  return request.post(`/api/user/passport/login`,users);
};

//3、
const reqGetUserInfo= () => {
  return request.get('/api/user/passport/auth/getUserInfo');
};

export default {
  reqGetCode,
  reqUserRegister,
  reqToLogin,
  reqGetUserInfo,
};
